
package cn.xyy.log;

import cn.xyy.system.service.LogService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;

import cn.xyy.log.event.SysLogListener;

/**
 * 
 * @author xyy
 *
 */
@EnableAsync
@Configuration(proxyBeanMethods = false)
public class LogConfiguration {

	@Bean
	public SysLogListener sysLogListener(LogService remoteLog) {
		return new SysLogListener(remoteLog);
	}

	@Bean
	public SysLogAspect sysLogAspect() {
		return new SysLogAspect();
	}

}
